<template>
	<VideoInfo :videoList="videoList" />
</template>

<script setup>
	import { ref, nextTick } from 'vue';
	import VideoInfo from '/components/VideoInfo.vue';
	import { port, imgUrl, goUrl, hint, goBack } from '/service/port';
	import { onLoad, onShow } from '@dcloudio/uni-app';
	const videoList = ref([]);
	const id = ref('');
	
	onLoad((e) => {
		if (e.id) {
			id.value = e.id;
		}
	});

	onShow(() => {
	
		evaluateInfo();
	});

	async function evaluateInfo() {
		let res = await port('evaluateInfo', { id: id.value });
		videoList.value = [
			{
				video: res.data.video,
				isPaused: false,
				describe: res.data.content,
				create_date: res.data.create_time,
				user: res.data.user
			}
		];
	}
</script>

<style></style>
